package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created by DK on 16/10/17.
 */
@Entity
@Table(name = "market_merchant_gift_packet")
@DynamicInsert
@DynamicUpdate
public class MarketMerchantGiftPacket extends IDEntityMall{

    @Column(columnDefinition = "varchar(50) comment '产品id'")
    private Long packetId;
    @Column(columnDefinition = "bigint comment '商户 id'")
    private Long merchantId;
    @Column(columnDefinition = "bigint comment '平台 id'")
    private Long mallId;
    @Column(columnDefinition = "bit comment '是否在分销市场展示'")
    private Boolean isRecommend;

    public Long getPacketId() {
        return packetId;
    }

    public void setPacketId(Long packetId) {
        this.packetId = packetId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getMallId() {
        return mallId;
    }

    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    public Boolean getRecommend() {
        return isRecommend;
    }

    public void setRecommend(Boolean recommend) {
        isRecommend = recommend;
    }

    @Override
    public String toString() {
        return "MarketMerchantGiftPacket{" +
                "packetId=" + packetId +
                ", id=" + id +
                ", merchantId=" + merchantId +
                ", dateCreated=" + dateCreated +
                ", mallId=" + mallId +
                ", isRecommend=" + isRecommend +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
